#include<stdio.h>
int main()
{
	int line = 0;
	scanf("%d",&line);
	int half_line = (line -1)/2;
	for(int i = half_line;i>=1;i--)
	{
		int blank = 2*i;
		int stars = line - blank;
		for(int t = 0;t<blank;t++)
		{
			printf(" ");
		}
		for (int y =0;y<stars;y++)
		{
			printf("* ");
		}
		printf("\n");
	}
	for(int i = 0;i<line;i++)
	{
		printf("* ");
	}
	printf("\n");
	for(int i = 1;i<=half_line;i++)
	{
		int blank = 2*i;
		int stars = line-blank;
		for(int t = 0;t<blank;t++)
		{
			printf(" ");
		}
		for(int y = 0;y<stars;y++)
		{
			printf("* ");
		}
		printf("\n");
	}
	return 0;
}
